package com.bh.test.service;

import com.bh.mapper.RoleMapper;
import com.bh.pojo.vo.UserVO;
import com.bh.service.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class UserText {
    ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");
    UserService roleMapper = ac.getBean(UserService.class);

    @Test
    public void aaa(){
        List<UserVO> all = roleMapper.findAll(null);
        System.out.println(all);
    }
}
